/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hd2tecnologia.mensagens;

import javax.swing.ImageIcon;
import javax.swing.JOptionPane;

/**
 *
 * @author Júnior
 */
public class ShowMensagens {
    
    public boolean confirmarMensagem(String msg, String title, ImageIcon icone){
        
        int confirm = JOptionPane.showConfirmDialog(null, msg, title, JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_CANCEL_OPTION, icone);
        
            if(confirm == 0){
                return true;
            }else{
                return false;
            }
    }
    
}
